package org.soenea.doitall.domain.model.group;

import java.util.List;

import org.dsrg.soenea.domain.DomainObject;
import org.soenea.doitall.domain.model.invite.IInvite;


public class Group  extends DomainObject<Long> implements IGroup  {
	
	private String groupName;
	private String description;
	private List<IInvite> members;
		
	public Group(Long groupID, String groupName, String description, long version, List<IInvite> members) {
		 super(groupID, version);
		 this.groupName = groupName;
		 this.description = description;
		 this.members = members;
	}

	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Override
	public void setMembers(List<IInvite> members) {
		this.members = members;
	}

	@Override
	public List<IInvite> getMembers() {
		return members;
	}
}
